import request from '@/utils/request'

// 查询辅导员考核指标列表
export function listExamineField(query) {
  return request({
    url: '/clr/examineField/list',
    method: 'get',
    params: query
  })
}

// 查询辅导员考核指标详细
export function getExamineField(cefId) {
  return request({
    url: '/clr/examineField/' + cefId,
    method: 'get'
  })
}

// 新增辅导员考核指标
export function addExamineField(data) {
  return request({
    url: '/clr/examineField',
    method: 'post',
    data: data
  })
}

// 修改辅导员考核指标
export function updateExamineField(data) {
  return request({
    url: '/clr/examineField',
    method: 'put',
    data: data
  })
}

// 删除辅导员考核指标
export function delExamineField(cefId) {
  return request({
    url: '/clr/examineField/' + cefId,
    method: 'delete'
  })
}
// 下载模块
export function importTemplate(data) {
  return request({
    url: '/clr/examineField/importTemplate',
    method: 'post',
    responseType: 'blob',
    params: data
  })
}
